package com.iflytek.cosmo.ocr.model.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "T_LICENSE")
public class LicenseEntity {
    /**
     *id
     */
    @Column(name = "id")
    @Id
    private String id;
    /**
     *授权码
     */
    @Column(name = "code")
    private String code;
    /**
     *创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    
    /**
     *授权码类型, 如: 试用授权码trial, 正式授权码formal,免授权:free
     */
    @Column(name = "type")
    private String type;
    
    
    /**
     *授权码激活时间
     */
    @Column(name = "active_time")
    private Date activeTime;
    
    
    /**
     *授权码过期时间
     */
    @Column(name = "expire_time")
    private Date expireTime;
    
    /**
     *初始状态未激活:init,已被使用:used
     */
    @Column(name = "state")
    private String state;
    public String getId(){
        return id;
    }
    public void setId(String id){
        this.id = id;
    }
    public String getCode(){
        return code;
    }
    public void setCode(String code){
        this.code = code;
    }
    public Date getCreateTime(){
        return createTime;
    }
    public void setCreateTime(Date createTime){
        this.createTime = createTime;
    }
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Date getActiveTime() {
		return activeTime;
	}
	public void setActiveTime(Date activeTime) {
		this.activeTime = activeTime;
	}
	public Date getExpireTime() {
		return expireTime;
	}
	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
}
